﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ionic.Zip;
using System.IO;

namespace ZipOperations
{
    class ZipOperations
    {
        static string FILEPATH = "../../Students.txt";
        static string EXITPATH = "../Students.zip";
        static void Main(string[] args)
        {
            FileStream file = new FileStream("../../Students.txt", FileMode.OpenOrCreate, FileAccess.ReadWrite);
            using (file)
            {
                ZipFile zip = new ZipFile();
                zip.AddFile(FILEPATH);
                zip.Save(EXITPATH);
            }
        }
    }
}
